package com.xkdx.guangguang.fragment.shopinfo;

import java.util.HashMap;

import com.xkdx.guangguang.fragment.BaseFragment;
import com.xkdx.guangguang.fragment.brand.branch.BranchFragment;
import com.xkdx.guangguang.fragment.myinfomation.InfoNotificationFragment;
import com.xkdx.guangguang.module.network.AbsModule;
import com.xkdx.guangguang.module.network.HttpTask;
import com.xkdx.guangguang.module.network.JsonHttpRequest;

public class ShopInfoUnitPresistence extends HttpTask {
	public ShopInfoUnitPresistence(BaseFragment baseFragment) {
		this.baseFragment = baseFragment;
		mUseCache = false;
		requestInstent = new JsonHttpRequest();

	}

	@Override
	protected void onPostExecute(HashMap<String, AbsModule> result) {
		if (baseFragment != null) {
			if (BranchFragment.isUnitMore) {
				((BranchFragment) baseFragment).showUnitLoaded(result);
			}else{
				((BranchFragment) baseFragment).showUnitFirstLoaded(result);
			}

		}
	}
}
